package com.lvmama.common.exception;

import com.lvmama.common.result.CodeMessage;

/**
 * Created by Administrator on 2018/8/6.
 */
public class GlobalException extends RuntimeException{

    private static final long serialVersionUID = 1L;

    private CodeMessage codeMessage;

    public GlobalException(CodeMessage codeMessage) {
        super();
        this.codeMessage = codeMessage;
    }

    public CodeMessage getCodeMessage() {
        return codeMessage;
    }

    public void setCodeMessage(CodeMessage codeMessage) {
        this.codeMessage = codeMessage;
    }
}
